var events=require('events');
var channle=new events();
channle.on('join', function (name) {
    console.log('Welcome '+name);
});

channle.emit('join','Tom');